package com.mybatis_puls.demo.controller;


import com.mybatis_puls.demo.entity.Printprice;
import com.mybatis_puls.demo.service.PrintpriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 小🌤
 * @since 2021-01-03
 */
@RestController
@RequestMapping("/printprice")
public class PrintpriceController {
      @Autowired
    private PrintpriceService printpriceService;

   @RequestMapping("/findAll")
    public Object findAll(){
       List<Printprice> list = printpriceService.list();
     return list.get(0);
   }
}

